﻿<%@ Page Title="" Language="C#" MasterPageFile="~/adm/Admin.Master" AutoEventWireup="true" CodeBehind="changepassword.aspx.cs" Inherits="InstituteManager.adm.changepassword" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>Information</h3>
	
      
   
    

        <asp:Panel ID="pnlStaff" runat="server" Visible="false">
            <div class="control">
            <a href="javascript:history.back();" id="lbtBackTV" class="back" >Go Back</a>

        </div>
                

		    <table width="95%" class="data">
            <tr><th>Data Name</th><th>&nbsp;Data</th></tr>
                
			    <tr><td width="125px"><b>User Name</b></td><td> 
                    <asp:Label ID="lblUsername" runat="server" Font-Bold="True" 
                        Font-Italic="True" Font-Size="8pt" ForeColor="#0000CC"></asp:Label>
                    </td></tr>
			    <tr><td class="data"><b>Staff Name</b></td><td class="data">
                    <asp:Label ID="lblStaffName" runat="server" Text=""></asp:Label>
                    </td></tr>
			    <tr><td><b>Address</b></td><td>
                    <asp:Label ID="lblAddress" runat="server" Text=""></asp:Label> 
                    </td></tr>
                <tr><td><b>Date Of Birthday</b></td><td class="update">
                    <asp:Label ID="lblDOB" runat="server" Text=""></asp:Label> 
                    </td></tr>
                <tr><td><b>Phone</b></td><td>
                    <asp:Label ID="lblPhone" runat="server" Text=""></asp:Label> 
                    </td></tr>
                <tr><td><b>Email </b></td><td>
                    <asp:Label ID="lblEmail" runat="server" Text=""></asp:Label> 
                    </td></tr>
                <tr><td><b>Permission</b></td><td>
                    <asp:Label ID="lblPermission" runat="server" Text=""></asp:Label> 
                    </td></tr>
			    </table>


        </asp:Panel>

        <asp:Panel ID="pnlMessage" runat="server" CssClass="informasi" Visible="False">
        <asp:Label ID="lblMessage" runat="server" Text="Message"></asp:Label>
        </asp:Panel> 

        <asp:Panel ID="pnlUpdate" runat="server" Visible="true">
        <div class="control">
            <asp:LinkButton ID="lbtChangePassT" runat="server" CssClass="changePass" 
                onclick="lbtChangePass_Click" >Change Password</asp:LinkButton>
            |<a href="javascript:history.back();" id="A2" class="back" >Go Back</a>

        </div>

        <asp:TextBox ID="txtId" runat="server" Visible="False"></asp:TextBox>

		    <table width="95%" class="update">
			    <tr><td width="125px"><b>Old Password</b></td><td> 
                    <asp:TextBox ID="txtOldPassword" runat="server" Width="40%" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvOldPassword" runat="server" 
                        ControlToValidate="txtOldPassword" 
                        ErrorMessage="You must Old Password!" Font-Bold="True"></asp:RequiredFieldValidator>
                    </td></tr>
			    <tr><td><b>New Password</b></td><td>
                    <asp:TextBox ID="txtNewPassword" runat="server" Width="40%" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvNewPassword" runat="server" 
                        ControlToValidate="txtNewPassword" ErrorMessage="You must enter New Password" 
                        Font-Bold="True"></asp:RequiredFieldValidator>
                    </td></tr>
			    <tr><td><b>Re-type New Password</b></td><td>
                    <asp:TextBox ID="txtRePassword" runat="server" Width="40%" TextMode="Password"></asp:TextBox>
                    
                    <asp:RequiredFieldValidator ID="rfvRePassword" runat="server" 
                        ControlToValidate="txtRePassword" Display="Dynamic" 
                        ErrorMessage="You must enter Re-type Password !" Font-Bold="True"></asp:RequiredFieldValidator>
                    
                    <asp:CompareValidator ID="cpvRePassword" runat="server" 
                        ControlToCompare="txtNewPassword" ControlToValidate="txtRePassword" 
                        ErrorMessage="New Password and Re-type Password not equals !" 
                        Display="Dynamic" Font-Bold="True"></asp:CompareValidator>
                    
                    </td></tr>
          
			    
		    </table>

        <div class="control">
            <asp:LinkButton ID="lbtChangePassB" runat="server" CssClass="changePass" 
                onclick="lbtChangePass_Click">Change Password</asp:LinkButton>
            |<a href="javascript:history.back();" id="A3" class="back" >Go Back</a>
        </div>
    </asp:Panel>
</asp:Content>
